//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Drake Milligan','Barnato','Omaha, NE','Thursday','6/13/2024','8:00 PM','6431013','Drake-Milligan-6-13-2024'],['Drake Milligan','Bluebird Nightclub - Bloomington','Bloomington, IN','Friday','7/12/2024','8:00 PM','6327623','Drake-Milligan-7-12-2024'],['Drake Milligan','Eight Seconds Saloon','Indianapolis, IN','Saturday','7/13/2024','8:45 PM','6381361','Drake-Milligan-7-13-2024'],['FarmJam Festival: Drake Milligan, War Hippies & Craig Morgan - 3 Day Pass','Farm Jam Festival Grounds','Colville, WA','Friday','8/30/2024','TBD','6066526','FarmJam-Festival--Drake-Milligan--War-Hippies---Craig-Morgan---3-Day-Pass-8-30-2024'],['FarmJam Festival: Drake Milligan, Jessie Leigh, Jason Cross & Brandon Jackson - Friday','Farm Jam Festival Grounds','Colville, WA','Friday','8/30/2024','3:00 PM','6053402','FarmJam-Festival--Drake-Milligan--Jessie-Leigh--Jason-Cross---Brandon-Jackson---Friday-8-30-2024'],['Drake Milligan','Grizzly Rose','Denver, CO','Friday','9/13/2024','8:00 PM','6307393','Drake-Milligan-9-13-2024'],['Drake Milligan','Lori's Road House','West Chester, OH','Saturday','10/5/2024','8:00 PM','6429656','Drake-Milligan-10-5-2024']],'"Drake Milligan"','https://www.ticketnetwork.com');